<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<body>
	<f:view locale="#{language.locale}">
		<center>
			<h:form>
				<h:messages />
				<h:panelGrid border="1" columns="2">
					<h:outputText value="#{msg['userid']}:" />
					<h:inputText value="#{createAccount.userID}" required="true"/>
					<h:outputText value="#{msg['username']}:" />
					<h:inputText value="#{createAccount.userName}" required="true"/>
					<h:outputText value="#{msg['password']}:" />
					<h:inputSecret value="#{createAccount.password}" required="true"/>
					<h:outputText value="#{msg['role']}:" />
					<h:selectOneMenu value="#{createAccount.role}">
						<f:selectItem itemValue="User" />
						<f:selectItem itemValue="Manager" />
					</h:selectOneMenu>
					<h:outputText value="#{msg['dept']}:" />
					<h:selectOneMenu value="#{createAccount.department}">
						<f:selectItems value="#{dept.item}" />
					</h:selectOneMenu>
					<h:outputText value="" />
					<h:panelGroup>
						<h:commandButton action="#{createAccount.create}"
							value="#{msg['create']}" type="submit" />
						<h:commandButton value="#{msg['reset']}" type="reset" />
					</h:panelGroup>
				</h:panelGrid>
				<h:outputText value="#{createAccount.result}" />
			</h:form>
		</center>
	</f:view>
</body>
</html>
